package sma.util;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class FileUtil {

	public static void saveFile(String content, File file) throws IOException {
		FileOutputStream fos = new FileOutputStream(file);
		BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos, "UTF-8"));
		out.write(content);
		// Close the output stream
		out.close();
	}

}
